import bable from 'rollup-plugin-babel'
import serve from 'rollup-plugin-serve'

export default{
    input: './src/index.js',//入口文件
    output:{
        file:'dist/vue.js',
        format:'umd', // window上vue
        name:'Vue',
        sourcemap:true
    },
    plugins:[
        bable({
            exclude:'node_modules/**'
        }),
        serve({
            port:3000,
            contentBase:'',//当前目录
            openPage:"/index.html"
        })
    ],

}